body {
    font-family: Arial, sans-serif;
    background-color: #e6f0f8;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    display: flex;
    width: 80%;
    height: 80%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar {
    width: 25%;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.search-bar {
    padding: 10px;
    display: flex;
}

.search-bar input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #45a049;
}

.user-list {
    flex: 1;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.user-item.active {
    background-color: #e6f0f8;
}

.user-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-item .user-name {
    font-weight: bold;
}

.user-item .last-message {
    color: #888;
    font-size: 0.9em;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 1.2em;
}

.chat-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f0f0f0;
}

.chat-message {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message {
    padding: 10px;
    border-radius: 5px;
    max-width: 60%;
    word-wrap: break-word;
}

.message.user {
    background-color: #fff;
    border: 1px solid #ddd;
    align-self: flex-end;
}

.message.bot {
    background-color: #e6f0f8;
    border: 1px solid #ddd;
    align-self: flex-start;
}

.message-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.chat-input {
    display: flex;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-input button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #45a049;
}

